Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# 57 회원 탈퇴 로직 #64

Merged
merged 12 commits into from
Oct 24, 2023
Merged

# 57 회원 탈퇴 로직 #64

merged 12 commits into from
Oct 24, 2023

Conversation

JuuuuHong
Copy link
Collaborator

💡 개요

회원 탈퇴 로직

📃 작업내용

회원 탈퇴 -> 회원 탈퇴 이벤트 발행 -> 회원 탈퇴 이벤트 핸들러에서 회원 탈퇴 로직 처리
phase 를 Before Commit 으로 설정
Authority when 문에서 else 일 때는 예외를 던져주었습니다.

🎸 기타

Inquery 또는 Post 같은 아직 만들어 놓지 않은 Entity 를 나중에 추가할 때 회원 탈퇴 로직에서 같이 삭제 해주시면 될 것 같습니다.

@JuuuuHong JuuuuHong self-assigned this Oct 24, 2023
@JuuuuHong JuuuuHong linked an issue Oct 24, 2023 that may be closed by this pull request
else -> throw UnApprovedUserException("회원가입 승인 대기 중인 유저입니다. info : [ userId = ${user.id} ]")
}

userRepository.delete(user)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user delete는 서비스에 놔두는게 나을 것 같아요

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8ea9ecf 변경했습니다.

Copy link
Contributor

@ani2689 ani2689 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다.

@JuuuuHong JuuuuHong merged commit 8c73d80 into master Oct 24, 2023
1 check passed
@esperar esperar deleted the 57-feat/withdraw-user branch October 27, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

회원탈퇴 기능 구현
4 participants